package com.fas.hehe.system.controller;

import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.apache.shiro.subject.Subject;

import com.fas.core.BaseController;
import com.fas.core.plugin.jfinal.route.ControllerBind;
import com.fas.core.plugin.shiro.kit.FasShiroKit;

@RequiresAuthentication
@ControllerBind(controllerKey="/logout")
public class LogoutController extends BaseController {

	public void index() {
        Subject subject = FasShiroKit.getSubject();
        subject.logout();
    	this.redirect("/page/login.jsp");
	}
}
